
var MyServer = require("./Server");




//start the server
function createServer(port, resourceMapRootFolder, rootFolder) {

    //create the TCP server
    //myServer.createServer(port, resourceMapRootFolder, rootFolder);

    var server = new MyServer();
    server.createServer(port, resourceMapRootFolder, rootFolder);
    server.name = "moshe-" + port;
    return server;
}

/*
function start() {

    //start the TCP server
    myServer.start();

}

//stops the existing server
function stop() {

    myServer.stop();

}

function status() {

    return myServer.getStatusObj();

}


//register the invokation of the callbackFunction on a specific events
function on(event, callbackFunction) {

    myServer.on(event, callbackFunction);
}

*/
exports.createServer = createServer;
